package com.jy.api.util.builder;

import java.util.HashMap;
import java.util.Map;

public class MapBuilder<B extends MapBuilder<B, K, V>, K, V> {
    private final Map<K, V> map = new HashMap();

    public MapBuilder() {
    }

    public B put(K key, V value) {
        this.map.put(key, value);
        return this._this();
    }

    public Map<K, V> get() {
        return this.map;
    }

    protected final B _this() {
        return (B) this;
    }
}